<include file="Public/head"/>
<body class="no-skin">
<include file="Public/header"/>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>

    <include file="Public/sidebar"/>
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs"/>

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set"/>

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" role="form" id="form" method="post" action="{:U('update')}">
                            <input name="id" id="id" value="{$info.id}" type="hidden">
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="name"> 姓名 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="name" id="name" placeholder="姓名"
                                           class="col-xs-10 col-sm-5" value="{$info.name}">
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="mobile"> 电话 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="mobile" id="mobile" placeholder="电话"
                                           class="col-xs-10 col-sm-5" value="{$info.mobile}">
                                </div>
                            </div>
                            <div class="space-4"></div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="content"> 留言内容 </label>
                                <div class="col-sm-9">
                                    <textarea name="content" id="content" placeholder="留言内容"
                                              class="col-xs-10 col-sm-5" rows="5">{$info.content}</textarea>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="from"> 来源 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="from" id="from" placeholder="来源"
                                           class="col-xs-10 col-sm-5" value="{$info.from}" disabled>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="msg_type"> 留言类型 </label>
                                <div class="col-sm-9">
                                    <input type="text" name="msg_type" id="msg_type" placeholder="留言类型"
                                           class="col-xs-10 col-sm-5" value="{$info.msg_type_n}" disabled>
                                </div>
                            </div>

                <div class="col-md-offset-2 col-md-9">
                    <button class="btn btn-info submit" type="button">
                        <i class="icon-ok bigger-110"></i>
                        提交
                    </button>
                </div>
                </form>
                <!-- PAGE CONTENT ENDS -->
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div><!-- /.page-content -->
</div>
</div><!-- /.main-content -->
<include file="Public/footer"/>

</div><!-- /.main-container -->

<include file="Public/footerjs"/>
<!-- inline scripts related to this page -->
<script type="text/javascript">
    $(function () {
        $(".btn.btn-info.submit").click(function () {
//            var name = $("#name").val();
//            if (name == '') {
//                bootbox.dialog({
//                    message: "抱歉，分类名称不能为空。",
//                    buttons: {
//                        "success": {
//                            "label": "确定",
//                            "className": "btn-danger"
//                        }
//                    }
//                });
//                return false;
//            }
            $("#form").submit();

        })
    })
</script>
</body>
</html>
